<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<%@ include file="/jsp/imports/header.jsp" %>
	<script type="text/javascript">
	function foward(acao){
		document.form.action = acao;
		document.form.submit();
	}
</script>
</head>

<body>
<c:set var="page" value="abrirAlteraCurso.do?idCurso=${curso.idCurso}" scope="session"/>
<div class="contentwrap">
	
<div class="headwrap">


  <%@ include file="/jsp/imports/top.jsp" %>   
    


	<div class="container content">
		
	  <div class="span-20 append-2 prepend-2">
	  
	  
	   
        <%@ include file="/jsp/imports/mensagens.jsp" %>
  	
  	
    
  <%@include file="/jsp/imports/menuLateral.jsp" %>
  



		  <div class="span-12 services last">
				<h2 align="center"><fmt:message key="alteraCurso.titulo"/></h2>
	<br/>
	<form action="alteraCurso.do?acao=alterar" method="post" name="form">
		<input type="hidden" name="id" value="${param.id == null ? curso.idCurso : param.id}"/>
		<table>
			<tr>
				<td><fmt:message key="curso"/></td>
				<td><input id="nome" class="required" name="nome" value="${param.nome == null ? curso.nome : param.nome}" size="60"/></td>
			</tr>
			<tr>
				<td><fmt:message key="codigo"/></td>
				<td><input id="codigo" class="required" name="codigo" value="${param.codigo == null ? curso.codigo : param.codigo}" size="60"/></td>
			</tr>
		</table>
		<input type="submit" value="<fmt:message key="botao.alterar"/>"/>
		<input type="button" value="<fmt:message key="botao.cancelar"/>" onclick="foward('abrirListarCurso.do')"/>
	</form>
				
		  </div>
			
		  <div class="final"></div>
		
		</div>
	
	</div>

</div>

</div>

 
<%@ include file="/jsp/imports/footer.jsp" %>
</body>
</html>